package com.javatest.springbootelastic.repository;

import com.javatest.springbootelastic.bean.Book;
import java.util.List;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author lzy
 * @version v1.0 Create DateTime: 2019/4/24 13:22
 */
public interface BookRepository extends ElasticsearchRepository<Book, Integer> {

  List<Book> findByBookNameLikeAnd(String bookName);
}
